package org.jivesoftware.smackx.pubsub.provider;

import java.util.List;
import java.util.Map;
import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smackx.provider.EmbeddedExtensionProvider;
import org.jivesoftware.smackx.pubsub.Affiliation;
import org.jivesoftware.smackx.pubsub.Affiliation.Type;

public class AffiliationProvider extends EmbeddedExtensionProvider
{
  protected PacketExtension createReturnExtension(String paramString1, String paramString2, Map<String, String> paramMap, List<? extends PacketExtension> paramList)
  {
    return new Affiliation((String)paramMap.get("node"), Affiliation.Type.valueOf((String)paramMap.get("affiliation")));
  }
}